package com.czkt.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.czkt.entity.CstLost;
import com.czkt.mapper.CstLostMapper;
import com.czkt.service.ICstLostService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2024-06-18
 */
@Service
public class CstLostServiceImpl extends ServiceImpl<CstLostMapper, CstLost> implements ICstLostService {
    @Resource
    CstLostMapper cstLostMapper;

    @Override
    public IPage<CstLost> selectCstLost(String lstCustName, String lstCustManagerName, Integer pageIndex, Integer pageSize) {
        Page<CstLost> cstLostPage = new Page<>(pageIndex,pageSize);
        return cstLostMapper.selectCstLost(cstLostPage,lstCustName, lstCustManagerName);
    }

    @Override
    public CstLost selectCstLostUpdate(String lstId) {
        return cstLostMapper.selectCstLostUpdate(lstId);
    }

    @Override
    public void toUpdateCstLost(CstLost cstLost) {
        cstLostMapper.toUpdateCstLost(cstLost);
    }


}
